(0) Obligation:

Clauses:

in_order(void, L) :- ','(!, eq(L, [])).
in_order(T, Xs) :- ','(value(T, X), ','(app(Ls, .(X, Rs), Xs), ','(left(T, L), ','(in_order(L, Ls), ','(right(T, R), in_order(R, Rs)))))).
app([], X, X).
app(.(X, Xs), Ys, .(X, Zs)) :- app(Xs, Ys, Zs).
left(void, void).
left(node(L, X1, X2), L).
right(void, void).
right(node(X3, X4, R), R).
value(void, X5).
value(node(X6, X, X7), X).
eq(X, X).

Query: in_order(a,g)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

appA([], T197, T198, .(T197, T198)).
appA(.(T203, X446), X447, X448, .(T203, T204)) :- appA(X446, X447, X448, T204).
in_orderB([]).
appC([], T455, T456, .(T455, T456)).
appC(.(T464, X806), T466, X807, .(T464, T465)) :- appC(X806, T466, X807, T465).
appD([], T32, T33, .(T32, T33)).
appD(.(T38, []), T52, T53, .(T38, .(T52, T53))).
appD(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73)))).
appD(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93))))).
appD(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113)))))).
appD(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133))))))).
appD(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153)))))))).
appD(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173))))))))).
appD(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) :- appA(X395, X396, X397, T179).
appE([], T258, T259, .(T258, T259)).
appE(.(T267, []), T282, T283, .(T267, .(T282, T283))).
appE(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307)))).
appE(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331))))).
appE(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355)))))).
appE(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379))))))).
appE(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403)))))))).
appE(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427))))))))).
appE(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) :- appC(X767, T437, X768, T436).
in_orderF(void, []).
in_orderF(void, T11) :- appD(X18, X31, X19, T11).
in_orderF(void, T11) :- ','(appD(T17, T18, T19, T11), in_orderB(T17)).
in_orderF(void, T11) :- ','(appD(T17, T18, T19, T11), ','(in_orderB(T17), in_orderB(T19))).
in_orderF(node(T234, T233, T235), T11) :- appE(X18, T233, X19, T11).
in_orderF(node(T484, T482, T485), T11) :- ','(appE(T240, T482, T241, T11), in_orderF(T484, T240)).
in_orderF(node(T499, T500, T502), T11) :- ','(appE(T240, T500, T241, T11), ','(in_orderF(T499, T240), in_orderF(T502, T241))).

Query: in_orderF(a,g)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
in_orderF_in: (f,b)
appD_in: (f,f,f,b)
appA_in: (f,f,f,b)
appE_in: (f,f,f,b)
appC_in: (f,f,f,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

in_orderF_in_ag(void, []) → in_orderF_out_ag(void, [])
in_orderF_in_ag(void, T11) → U5_ag(T11, appD_in_aaag(X18, X31, X19, T11))
appD_in_aaag([], T32, T33, .(T32, T33)) → appD_out_aaag([], T32, T33, .(T32, T33))
appD_in_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53))) → appD_out_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53)))
appD_in_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73)))) → appD_out_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73))))
appD_in_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93))))) → appD_out_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93)))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113)))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133)))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153)))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173))))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173)))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_in_aaag(X395, X396, X397, T179))
appA_in_aaag([], T197, T198, .(T197, T198)) → appA_out_aaag([], T197, T198, .(T197, T198))
appA_in_aaag(.(T203, X446), X447, X448, .(T203, T204)) → U1_aaag(T203, X446, X447, X448, T204, appA_in_aaag(X446, X447, X448, T204))
U1_aaag(T203, X446, X447, X448, T204, appA_out_aaag(X446, X447, X448, T204)) → appA_out_aaag(.(T203, X446), X447, X448, .(T203, T204))
U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_out_aaag(X395, X396, X397, T179)) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179)))))))))
U5_ag(T11, appD_out_aaag(X18, X31, X19, T11)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(void, T11) → U6_ag(T11, appD_in_aaag(T17, T18, T19, T11))
U6_ag(T11, appD_out_aaag(T17, T18, T19, T11)) → U7_ag(T11, T19, in_orderB_in_g(T17))
in_orderB_in_g([]) → in_orderB_out_g([])
U7_ag(T11, T19, in_orderB_out_g(T17)) → in_orderF_out_ag(void, T11)
U7_ag(T11, T19, in_orderB_out_g(T17)) → U8_ag(T11, in_orderB_in_g(T19))
U8_ag(T11, in_orderB_out_g(T19)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(node(T234, T233, T235), T11) → U9_ag(T234, T233, T235, T11, appE_in_aaag(X18, T233, X19, T11))
appE_in_aaag([], T258, T259, .(T258, T259)) → appE_out_aaag([], T258, T259, .(T258, T259))
appE_in_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283))) → appE_out_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283)))
appE_in_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307)))) → appE_out_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307))))
appE_in_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331))))) → appE_out_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331)))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355)))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379)))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403)))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427))))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427)))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_in_aaag(X767, T437, X768, T436))
appC_in_aaag([], T455, T456, .(T455, T456)) → appC_out_aaag([], T455, T456, .(T455, T456))
appC_in_aaag(.(T464, X806), T466, X807, .(T464, T465)) → U2_aaag(T464, X806, T466, X807, T465, appC_in_aaag(X806, T466, X807, T465))
U2_aaag(T464, X806, T466, X807, T465, appC_out_aaag(X806, T466, X807, T465)) → appC_out_aaag(.(T464, X806), T466, X807, .(T464, T465))
U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_out_aaag(X767, T437, X768, T436)) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436)))))))))
U9_ag(T234, T233, T235, T11, appE_out_aaag(X18, T233, X19, T11)) → in_orderF_out_ag(node(T234, T233, T235), T11)
in_orderF_in_ag(node(T484, T482, T485), T11) → U10_ag(T484, T482, T485, T11, appE_in_aaag(T240, T482, T241, T11))
U10_ag(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → U11_ag(T484, T482, T485, T11, in_orderF_in_ag(T484, T240))
in_orderF_in_ag(node(T499, T500, T502), T11) → U12_ag(T499, T500, T502, T11, appE_in_aaag(T240, T500, T241, T11))
U12_ag(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → U13_ag(T499, T500, T502, T11, T241, in_orderF_in_ag(T499, T240))
U13_ag(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → U14_ag(T499, T500, T502, T11, in_orderF_in_ag(T502, T241))
U14_ag(T499, T500, T502, T11, in_orderF_out_ag(T502, T241)) → in_orderF_out_ag(node(T499, T500, T502), T11)
U11_ag(T484, T482, T485, T11, in_orderF_out_ag(T484, T240)) → in_orderF_out_ag(node(T484, T482, T485), T11)

The argument filtering Pi contains the following mapping:
in_orderF_in_ag(x1, x2)  =  in_orderF_in_ag(x2)
[]  =  []
in_orderF_out_ag(x1, x2)  =  in_orderF_out_ag
U5_ag(x1, x2)  =  U5_ag(x2)
appD_in_aaag(x1, x2, x3, x4)  =  appD_in_aaag(x4)
.(x1, x2)  =  .(x1, x2)
appD_out_aaag(x1, x2, x3, x4)  =  appD_out_aaag(x1, x2, x3)
U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appA_in_aaag(x1, x2, x3, x4)  =  appA_in_aaag(x4)
appA_out_aaag(x1, x2, x3, x4)  =  appA_out_aaag(x1, x2, x3)
U1_aaag(x1, x2, x3, x4, x5, x6)  =  U1_aaag(x1, x6)
U6_ag(x1, x2)  =  U6_ag(x2)
U7_ag(x1, x2, x3)  =  U7_ag(x2, x3)
in_orderB_in_g(x1)  =  in_orderB_in_g(x1)
in_orderB_out_g(x1)  =  in_orderB_out_g
U8_ag(x1, x2)  =  U8_ag(x2)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
appE_in_aaag(x1, x2, x3, x4)  =  appE_in_aaag(x4)
appE_out_aaag(x1, x2, x3, x4)  =  appE_out_aaag(x1, x2, x3)
U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appC_in_aaag(x1, x2, x3, x4)  =  appC_in_aaag(x4)
appC_out_aaag(x1, x2, x3, x4)  =  appC_out_aaag(x1, x2, x3)
U2_aaag(x1, x2, x3, x4, x5, x6)  =  U2_aaag(x1, x6)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x5, x6)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

in_orderF_in_ag(void, []) → in_orderF_out_ag(void, [])
in_orderF_in_ag(void, T11) → U5_ag(T11, appD_in_aaag(X18, X31, X19, T11))
appD_in_aaag([], T32, T33, .(T32, T33)) → appD_out_aaag([], T32, T33, .(T32, T33))
appD_in_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53))) → appD_out_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53)))
appD_in_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73)))) → appD_out_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73))))
appD_in_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93))))) → appD_out_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93)))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113)))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133)))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153)))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173))))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173)))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_in_aaag(X395, X396, X397, T179))
appA_in_aaag([], T197, T198, .(T197, T198)) → appA_out_aaag([], T197, T198, .(T197, T198))
appA_in_aaag(.(T203, X446), X447, X448, .(T203, T204)) → U1_aaag(T203, X446, X447, X448, T204, appA_in_aaag(X446, X447, X448, T204))
U1_aaag(T203, X446, X447, X448, T204, appA_out_aaag(X446, X447, X448, T204)) → appA_out_aaag(.(T203, X446), X447, X448, .(T203, T204))
U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_out_aaag(X395, X396, X397, T179)) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179)))))))))
U5_ag(T11, appD_out_aaag(X18, X31, X19, T11)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(void, T11) → U6_ag(T11, appD_in_aaag(T17, T18, T19, T11))
U6_ag(T11, appD_out_aaag(T17, T18, T19, T11)) → U7_ag(T11, T19, in_orderB_in_g(T17))
in_orderB_in_g([]) → in_orderB_out_g([])
U7_ag(T11, T19, in_orderB_out_g(T17)) → in_orderF_out_ag(void, T11)
U7_ag(T11, T19, in_orderB_out_g(T17)) → U8_ag(T11, in_orderB_in_g(T19))
U8_ag(T11, in_orderB_out_g(T19)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(node(T234, T233, T235), T11) → U9_ag(T234, T233, T235, T11, appE_in_aaag(X18, T233, X19, T11))
appE_in_aaag([], T258, T259, .(T258, T259)) → appE_out_aaag([], T258, T259, .(T258, T259))
appE_in_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283))) → appE_out_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283)))
appE_in_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307)))) → appE_out_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307))))
appE_in_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331))))) → appE_out_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331)))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355)))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379)))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403)))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427))))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427)))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_in_aaag(X767, T437, X768, T436))
appC_in_aaag([], T455, T456, .(T455, T456)) → appC_out_aaag([], T455, T456, .(T455, T456))
appC_in_aaag(.(T464, X806), T466, X807, .(T464, T465)) → U2_aaag(T464, X806, T466, X807, T465, appC_in_aaag(X806, T466, X807, T465))
U2_aaag(T464, X806, T466, X807, T465, appC_out_aaag(X806, T466, X807, T465)) → appC_out_aaag(.(T464, X806), T466, X807, .(T464, T465))
U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_out_aaag(X767, T437, X768, T436)) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436)))))))))
U9_ag(T234, T233, T235, T11, appE_out_aaag(X18, T233, X19, T11)) → in_orderF_out_ag(node(T234, T233, T235), T11)
in_orderF_in_ag(node(T484, T482, T485), T11) → U10_ag(T484, T482, T485, T11, appE_in_aaag(T240, T482, T241, T11))
U10_ag(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → U11_ag(T484, T482, T485, T11, in_orderF_in_ag(T484, T240))
in_orderF_in_ag(node(T499, T500, T502), T11) → U12_ag(T499, T500, T502, T11, appE_in_aaag(T240, T500, T241, T11))
U12_ag(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → U13_ag(T499, T500, T502, T11, T241, in_orderF_in_ag(T499, T240))
U13_ag(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → U14_ag(T499, T500, T502, T11, in_orderF_in_ag(T502, T241))
U14_ag(T499, T500, T502, T11, in_orderF_out_ag(T502, T241)) → in_orderF_out_ag(node(T499, T500, T502), T11)
U11_ag(T484, T482, T485, T11, in_orderF_out_ag(T484, T240)) → in_orderF_out_ag(node(T484, T482, T485), T11)

The argument filtering Pi contains the following mapping:
in_orderF_in_ag(x1, x2)  =  in_orderF_in_ag(x2)
[]  =  []
in_orderF_out_ag(x1, x2)  =  in_orderF_out_ag
U5_ag(x1, x2)  =  U5_ag(x2)
appD_in_aaag(x1, x2, x3, x4)  =  appD_in_aaag(x4)
.(x1, x2)  =  .(x1, x2)
appD_out_aaag(x1, x2, x3, x4)  =  appD_out_aaag(x1, x2, x3)
U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appA_in_aaag(x1, x2, x3, x4)  =  appA_in_aaag(x4)
appA_out_aaag(x1, x2, x3, x4)  =  appA_out_aaag(x1, x2, x3)
U1_aaag(x1, x2, x3, x4, x5, x6)  =  U1_aaag(x1, x6)
U6_ag(x1, x2)  =  U6_ag(x2)
U7_ag(x1, x2, x3)  =  U7_ag(x2, x3)
in_orderB_in_g(x1)  =  in_orderB_in_g(x1)
in_orderB_out_g(x1)  =  in_orderB_out_g
U8_ag(x1, x2)  =  U8_ag(x2)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
appE_in_aaag(x1, x2, x3, x4)  =  appE_in_aaag(x4)
appE_out_aaag(x1, x2, x3, x4)  =  appE_out_aaag(x1, x2, x3)
U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appC_in_aaag(x1, x2, x3, x4)  =  appC_in_aaag(x4)
appC_out_aaag(x1, x2, x3, x4)  =  appC_out_aaag(x1, x2, x3)
U2_aaag(x1, x2, x3, x4, x5, x6)  =  U2_aaag(x1, x6)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x5, x6)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x5)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

IN_ORDERF_IN_AG(void, T11) → U5_AG(T11, appD_in_aaag(X18, X31, X19, T11))
IN_ORDERF_IN_AG(void, T11) → APPD_IN_AAAG(X18, X31, X19, T11)
APPD_IN_AAAG(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_AAAG(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_in_aaag(X395, X396, X397, T179))
APPD_IN_AAAG(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → APPA_IN_AAAG(X395, X396, X397, T179)
APPA_IN_AAAG(.(T203, X446), X447, X448, .(T203, T204)) → U1_AAAG(T203, X446, X447, X448, T204, appA_in_aaag(X446, X447, X448, T204))
APPA_IN_AAAG(.(T203, X446), X447, X448, .(T203, T204)) → APPA_IN_AAAG(X446, X447, X448, T204)
IN_ORDERF_IN_AG(void, T11) → U6_AG(T11, appD_in_aaag(T17, T18, T19, T11))
U6_AG(T11, appD_out_aaag(T17, T18, T19, T11)) → U7_AG(T11, T19, in_orderB_in_g(T17))
U6_AG(T11, appD_out_aaag(T17, T18, T19, T11)) → IN_ORDERB_IN_G(T17)
U7_AG(T11, T19, in_orderB_out_g(T17)) → U8_AG(T11, in_orderB_in_g(T19))
U7_AG(T11, T19, in_orderB_out_g(T17)) → IN_ORDERB_IN_G(T19)
IN_ORDERF_IN_AG(node(T234, T233, T235), T11) → U9_AG(T234, T233, T235, T11, appE_in_aaag(X18, T233, X19, T11))
IN_ORDERF_IN_AG(node(T234, T233, T235), T11) → APPE_IN_AAAG(X18, T233, X19, T11)
APPE_IN_AAAG(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_AAAG(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_in_aaag(X767, T437, X768, T436))
APPE_IN_AAAG(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → APPC_IN_AAAG(X767, T437, X768, T436)
APPC_IN_AAAG(.(T464, X806), T466, X807, .(T464, T465)) → U2_AAAG(T464, X806, T466, X807, T465, appC_in_aaag(X806, T466, X807, T465))
APPC_IN_AAAG(.(T464, X806), T466, X807, .(T464, T465)) → APPC_IN_AAAG(X806, T466, X807, T465)
IN_ORDERF_IN_AG(node(T484, T482, T485), T11) → U10_AG(T484, T482, T485, T11, appE_in_aaag(T240, T482, T241, T11))
U10_AG(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → U11_AG(T484, T482, T485, T11, in_orderF_in_ag(T484, T240))
U10_AG(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → IN_ORDERF_IN_AG(T484, T240)
IN_ORDERF_IN_AG(node(T499, T500, T502), T11) → U12_AG(T499, T500, T502, T11, appE_in_aaag(T240, T500, T241, T11))
U12_AG(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → U13_AG(T499, T500, T502, T11, T241, in_orderF_in_ag(T499, T240))
U12_AG(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → IN_ORDERF_IN_AG(T499, T240)
U13_AG(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → U14_AG(T499, T500, T502, T11, in_orderF_in_ag(T502, T241))
U13_AG(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → IN_ORDERF_IN_AG(T502, T241)

The TRS R consists of the following rules:

in_orderF_in_ag(void, []) → in_orderF_out_ag(void, [])
in_orderF_in_ag(void, T11) → U5_ag(T11, appD_in_aaag(X18, X31, X19, T11))
appD_in_aaag([], T32, T33, .(T32, T33)) → appD_out_aaag([], T32, T33, .(T32, T33))
appD_in_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53))) → appD_out_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53)))
appD_in_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73)))) → appD_out_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73))))
appD_in_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93))))) → appD_out_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93)))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113)))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133)))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153)))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173))))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173)))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_in_aaag(X395, X396, X397, T179))
appA_in_aaag([], T197, T198, .(T197, T198)) → appA_out_aaag([], T197, T198, .(T197, T198))
appA_in_aaag(.(T203, X446), X447, X448, .(T203, T204)) → U1_aaag(T203, X446, X447, X448, T204, appA_in_aaag(X446, X447, X448, T204))
U1_aaag(T203, X446, X447, X448, T204, appA_out_aaag(X446, X447, X448, T204)) → appA_out_aaag(.(T203, X446), X447, X448, .(T203, T204))
U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_out_aaag(X395, X396, X397, T179)) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179)))))))))
U5_ag(T11, appD_out_aaag(X18, X31, X19, T11)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(void, T11) → U6_ag(T11, appD_in_aaag(T17, T18, T19, T11))
U6_ag(T11, appD_out_aaag(T17, T18, T19, T11)) → U7_ag(T11, T19, in_orderB_in_g(T17))
in_orderB_in_g([]) → in_orderB_out_g([])
U7_ag(T11, T19, in_orderB_out_g(T17)) → in_orderF_out_ag(void, T11)
U7_ag(T11, T19, in_orderB_out_g(T17)) → U8_ag(T11, in_orderB_in_g(T19))
U8_ag(T11, in_orderB_out_g(T19)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(node(T234, T233, T235), T11) → U9_ag(T234, T233, T235, T11, appE_in_aaag(X18, T233, X19, T11))
appE_in_aaag([], T258, T259, .(T258, T259)) → appE_out_aaag([], T258, T259, .(T258, T259))
appE_in_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283))) → appE_out_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283)))
appE_in_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307)))) → appE_out_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307))))
appE_in_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331))))) → appE_out_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331)))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355)))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379)))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403)))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427))))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427)))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_in_aaag(X767, T437, X768, T436))
appC_in_aaag([], T455, T456, .(T455, T456)) → appC_out_aaag([], T455, T456, .(T455, T456))
appC_in_aaag(.(T464, X806), T466, X807, .(T464, T465)) → U2_aaag(T464, X806, T466, X807, T465, appC_in_aaag(X806, T466, X807, T465))
U2_aaag(T464, X806, T466, X807, T465, appC_out_aaag(X806, T466, X807, T465)) → appC_out_aaag(.(T464, X806), T466, X807, .(T464, T465))
U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_out_aaag(X767, T437, X768, T436)) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436)))))))))
U9_ag(T234, T233, T235, T11, appE_out_aaag(X18, T233, X19, T11)) → in_orderF_out_ag(node(T234, T233, T235), T11)
in_orderF_in_ag(node(T484, T482, T485), T11) → U10_ag(T484, T482, T485, T11, appE_in_aaag(T240, T482, T241, T11))
U10_ag(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → U11_ag(T484, T482, T485, T11, in_orderF_in_ag(T484, T240))
in_orderF_in_ag(node(T499, T500, T502), T11) → U12_ag(T499, T500, T502, T11, appE_in_aaag(T240, T500, T241, T11))
U12_ag(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → U13_ag(T499, T500, T502, T11, T241, in_orderF_in_ag(T499, T240))
U13_ag(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → U14_ag(T499, T500, T502, T11, in_orderF_in_ag(T502, T241))
U14_ag(T499, T500, T502, T11, in_orderF_out_ag(T502, T241)) → in_orderF_out_ag(node(T499, T500, T502), T11)
U11_ag(T484, T482, T485, T11, in_orderF_out_ag(T484, T240)) → in_orderF_out_ag(node(T484, T482, T485), T11)

The argument filtering Pi contains the following mapping:
in_orderF_in_ag(x1, x2)  =  in_orderF_in_ag(x2)
[]  =  []
in_orderF_out_ag(x1, x2)  =  in_orderF_out_ag
U5_ag(x1, x2)  =  U5_ag(x2)
appD_in_aaag(x1, x2, x3, x4)  =  appD_in_aaag(x4)
.(x1, x2)  =  .(x1, x2)
appD_out_aaag(x1, x2, x3, x4)  =  appD_out_aaag(x1, x2, x3)
U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appA_in_aaag(x1, x2, x3, x4)  =  appA_in_aaag(x4)
appA_out_aaag(x1, x2, x3, x4)  =  appA_out_aaag(x1, x2, x3)
U1_aaag(x1, x2, x3, x4, x5, x6)  =  U1_aaag(x1, x6)
U6_ag(x1, x2)  =  U6_ag(x2)
U7_ag(x1, x2, x3)  =  U7_ag(x2, x3)
in_orderB_in_g(x1)  =  in_orderB_in_g(x1)
in_orderB_out_g(x1)  =  in_orderB_out_g
U8_ag(x1, x2)  =  U8_ag(x2)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
appE_in_aaag(x1, x2, x3, x4)  =  appE_in_aaag(x4)
appE_out_aaag(x1, x2, x3, x4)  =  appE_out_aaag(x1, x2, x3)
U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appC_in_aaag(x1, x2, x3, x4)  =  appC_in_aaag(x4)
appC_out_aaag(x1, x2, x3, x4)  =  appC_out_aaag(x1, x2, x3)
U2_aaag(x1, x2, x3, x4, x5, x6)  =  U2_aaag(x1, x6)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x5, x6)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x5)
IN_ORDERF_IN_AG(x1, x2)  =  IN_ORDERF_IN_AG(x2)
U5_AG(x1, x2)  =  U5_AG(x2)
APPD_IN_AAAG(x1, x2, x3, x4)  =  APPD_IN_AAAG(x4)
U3_AAAG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U3_AAAG(x1, x2, x3, x4, x5, x6, x7, x8, x13)
APPA_IN_AAAG(x1, x2, x3, x4)  =  APPA_IN_AAAG(x4)
U1_AAAG(x1, x2, x3, x4, x5, x6)  =  U1_AAAG(x1, x6)
U6_AG(x1, x2)  =  U6_AG(x2)
U7_AG(x1, x2, x3)  =  U7_AG(x2, x3)
IN_ORDERB_IN_G(x1)  =  IN_ORDERB_IN_G(x1)
U8_AG(x1, x2)  =  U8_AG(x2)
U9_AG(x1, x2, x3, x4, x5)  =  U9_AG(x5)
APPE_IN_AAAG(x1, x2, x3, x4)  =  APPE_IN_AAAG(x4)
U4_AAAG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_AAAG(x1, x2, x3, x4, x5, x6, x7, x8, x13)
APPC_IN_AAAG(x1, x2, x3, x4)  =  APPC_IN_AAAG(x4)
U2_AAAG(x1, x2, x3, x4, x5, x6)  =  U2_AAAG(x1, x6)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x5)
U11_AG(x1, x2, x3, x4, x5)  =  U11_AG(x5)
U12_AG(x1, x2, x3, x4, x5)  =  U12_AG(x5)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x5, x6)
U14_AG(x1, x2, x3, x4, x5)  =  U14_AG(x5)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

IN_ORDERF_IN_AG(void, T11) → U5_AG(T11, appD_in_aaag(X18, X31, X19, T11))
IN_ORDERF_IN_AG(void, T11) → APPD_IN_AAAG(X18, X31, X19, T11)
APPD_IN_AAAG(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_AAAG(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_in_aaag(X395, X396, X397, T179))
APPD_IN_AAAG(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → APPA_IN_AAAG(X395, X396, X397, T179)
APPA_IN_AAAG(.(T203, X446), X447, X448, .(T203, T204)) → U1_AAAG(T203, X446, X447, X448, T204, appA_in_aaag(X446, X447, X448, T204))
APPA_IN_AAAG(.(T203, X446), X447, X448, .(T203, T204)) → APPA_IN_AAAG(X446, X447, X448, T204)
IN_ORDERF_IN_AG(void, T11) → U6_AG(T11, appD_in_aaag(T17, T18, T19, T11))
U6_AG(T11, appD_out_aaag(T17, T18, T19, T11)) → U7_AG(T11, T19, in_orderB_in_g(T17))
U6_AG(T11, appD_out_aaag(T17, T18, T19, T11)) → IN_ORDERB_IN_G(T17)
U7_AG(T11, T19, in_orderB_out_g(T17)) → U8_AG(T11, in_orderB_in_g(T19))
U7_AG(T11, T19, in_orderB_out_g(T17)) → IN_ORDERB_IN_G(T19)
IN_ORDERF_IN_AG(node(T234, T233, T235), T11) → U9_AG(T234, T233, T235, T11, appE_in_aaag(X18, T233, X19, T11))
IN_ORDERF_IN_AG(node(T234, T233, T235), T11) → APPE_IN_AAAG(X18, T233, X19, T11)
APPE_IN_AAAG(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_AAAG(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_in_aaag(X767, T437, X768, T436))
APPE_IN_AAAG(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → APPC_IN_AAAG(X767, T437, X768, T436)
APPC_IN_AAAG(.(T464, X806), T466, X807, .(T464, T465)) → U2_AAAG(T464, X806, T466, X807, T465, appC_in_aaag(X806, T466, X807, T465))
APPC_IN_AAAG(.(T464, X806), T466, X807, .(T464, T465)) → APPC_IN_AAAG(X806, T466, X807, T465)
IN_ORDERF_IN_AG(node(T484, T482, T485), T11) → U10_AG(T484, T482, T485, T11, appE_in_aaag(T240, T482, T241, T11))
U10_AG(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → U11_AG(T484, T482, T485, T11, in_orderF_in_ag(T484, T240))
U10_AG(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → IN_ORDERF_IN_AG(T484, T240)
IN_ORDERF_IN_AG(node(T499, T500, T502), T11) → U12_AG(T499, T500, T502, T11, appE_in_aaag(T240, T500, T241, T11))
U12_AG(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → U13_AG(T499, T500, T502, T11, T241, in_orderF_in_ag(T499, T240))
U12_AG(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → IN_ORDERF_IN_AG(T499, T240)
U13_AG(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → U14_AG(T499, T500, T502, T11, in_orderF_in_ag(T502, T241))
U13_AG(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → IN_ORDERF_IN_AG(T502, T241)

The TRS R consists of the following rules:

in_orderF_in_ag(void, []) → in_orderF_out_ag(void, [])
in_orderF_in_ag(void, T11) → U5_ag(T11, appD_in_aaag(X18, X31, X19, T11))
appD_in_aaag([], T32, T33, .(T32, T33)) → appD_out_aaag([], T32, T33, .(T32, T33))
appD_in_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53))) → appD_out_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53)))
appD_in_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73)))) → appD_out_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73))))
appD_in_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93))))) → appD_out_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93)))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113)))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133)))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153)))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173))))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173)))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_in_aaag(X395, X396, X397, T179))
appA_in_aaag([], T197, T198, .(T197, T198)) → appA_out_aaag([], T197, T198, .(T197, T198))
appA_in_aaag(.(T203, X446), X447, X448, .(T203, T204)) → U1_aaag(T203, X446, X447, X448, T204, appA_in_aaag(X446, X447, X448, T204))
U1_aaag(T203, X446, X447, X448, T204, appA_out_aaag(X446, X447, X448, T204)) → appA_out_aaag(.(T203, X446), X447, X448, .(T203, T204))
U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_out_aaag(X395, X396, X397, T179)) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179)))))))))
U5_ag(T11, appD_out_aaag(X18, X31, X19, T11)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(void, T11) → U6_ag(T11, appD_in_aaag(T17, T18, T19, T11))
U6_ag(T11, appD_out_aaag(T17, T18, T19, T11)) → U7_ag(T11, T19, in_orderB_in_g(T17))
in_orderB_in_g([]) → in_orderB_out_g([])
U7_ag(T11, T19, in_orderB_out_g(T17)) → in_orderF_out_ag(void, T11)
U7_ag(T11, T19, in_orderB_out_g(T17)) → U8_ag(T11, in_orderB_in_g(T19))
U8_ag(T11, in_orderB_out_g(T19)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(node(T234, T233, T235), T11) → U9_ag(T234, T233, T235, T11, appE_in_aaag(X18, T233, X19, T11))
appE_in_aaag([], T258, T259, .(T258, T259)) → appE_out_aaag([], T258, T259, .(T258, T259))
appE_in_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283))) → appE_out_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283)))
appE_in_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307)))) → appE_out_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307))))
appE_in_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331))))) → appE_out_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331)))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355)))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379)))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403)))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427))))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427)))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_in_aaag(X767, T437, X768, T436))
appC_in_aaag([], T455, T456, .(T455, T456)) → appC_out_aaag([], T455, T456, .(T455, T456))
appC_in_aaag(.(T464, X806), T466, X807, .(T464, T465)) → U2_aaag(T464, X806, T466, X807, T465, appC_in_aaag(X806, T466, X807, T465))
U2_aaag(T464, X806, T466, X807, T465, appC_out_aaag(X806, T466, X807, T465)) → appC_out_aaag(.(T464, X806), T466, X807, .(T464, T465))
U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_out_aaag(X767, T437, X768, T436)) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436)))))))))
U9_ag(T234, T233, T235, T11, appE_out_aaag(X18, T233, X19, T11)) → in_orderF_out_ag(node(T234, T233, T235), T11)
in_orderF_in_ag(node(T484, T482, T485), T11) → U10_ag(T484, T482, T485, T11, appE_in_aaag(T240, T482, T241, T11))
U10_ag(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → U11_ag(T484, T482, T485, T11, in_orderF_in_ag(T484, T240))
in_orderF_in_ag(node(T499, T500, T502), T11) → U12_ag(T499, T500, T502, T11, appE_in_aaag(T240, T500, T241, T11))
U12_ag(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → U13_ag(T499, T500, T502, T11, T241, in_orderF_in_ag(T499, T240))
U13_ag(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → U14_ag(T499, T500, T502, T11, in_orderF_in_ag(T502, T241))
U14_ag(T499, T500, T502, T11, in_orderF_out_ag(T502, T241)) → in_orderF_out_ag(node(T499, T500, T502), T11)
U11_ag(T484, T482, T485, T11, in_orderF_out_ag(T484, T240)) → in_orderF_out_ag(node(T484, T482, T485), T11)

The argument filtering Pi contains the following mapping:
in_orderF_in_ag(x1, x2)  =  in_orderF_in_ag(x2)
[]  =  []
in_orderF_out_ag(x1, x2)  =  in_orderF_out_ag
U5_ag(x1, x2)  =  U5_ag(x2)
appD_in_aaag(x1, x2, x3, x4)  =  appD_in_aaag(x4)
.(x1, x2)  =  .(x1, x2)
appD_out_aaag(x1, x2, x3, x4)  =  appD_out_aaag(x1, x2, x3)
U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appA_in_aaag(x1, x2, x3, x4)  =  appA_in_aaag(x4)
appA_out_aaag(x1, x2, x3, x4)  =  appA_out_aaag(x1, x2, x3)
U1_aaag(x1, x2, x3, x4, x5, x6)  =  U1_aaag(x1, x6)
U6_ag(x1, x2)  =  U6_ag(x2)
U7_ag(x1, x2, x3)  =  U7_ag(x2, x3)
in_orderB_in_g(x1)  =  in_orderB_in_g(x1)
in_orderB_out_g(x1)  =  in_orderB_out_g
U8_ag(x1, x2)  =  U8_ag(x2)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
appE_in_aaag(x1, x2, x3, x4)  =  appE_in_aaag(x4)
appE_out_aaag(x1, x2, x3, x4)  =  appE_out_aaag(x1, x2, x3)
U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appC_in_aaag(x1, x2, x3, x4)  =  appC_in_aaag(x4)
appC_out_aaag(x1, x2, x3, x4)  =  appC_out_aaag(x1, x2, x3)
U2_aaag(x1, x2, x3, x4, x5, x6)  =  U2_aaag(x1, x6)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x5, x6)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x5)
IN_ORDERF_IN_AG(x1, x2)  =  IN_ORDERF_IN_AG(x2)
U5_AG(x1, x2)  =  U5_AG(x2)
APPD_IN_AAAG(x1, x2, x3, x4)  =  APPD_IN_AAAG(x4)
U3_AAAG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U3_AAAG(x1, x2, x3, x4, x5, x6, x7, x8, x13)
APPA_IN_AAAG(x1, x2, x3, x4)  =  APPA_IN_AAAG(x4)
U1_AAAG(x1, x2, x3, x4, x5, x6)  =  U1_AAAG(x1, x6)
U6_AG(x1, x2)  =  U6_AG(x2)
U7_AG(x1, x2, x3)  =  U7_AG(x2, x3)
IN_ORDERB_IN_G(x1)  =  IN_ORDERB_IN_G(x1)
U8_AG(x1, x2)  =  U8_AG(x2)
U9_AG(x1, x2, x3, x4, x5)  =  U9_AG(x5)
APPE_IN_AAAG(x1, x2, x3, x4)  =  APPE_IN_AAAG(x4)
U4_AAAG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_AAAG(x1, x2, x3, x4, x5, x6, x7, x8, x13)
APPC_IN_AAAG(x1, x2, x3, x4)  =  APPC_IN_AAAG(x4)
U2_AAAG(x1, x2, x3, x4, x5, x6)  =  U2_AAAG(x1, x6)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x5)
U11_AG(x1, x2, x3, x4, x5)  =  U11_AG(x5)
U12_AG(x1, x2, x3, x4, x5)  =  U12_AG(x5)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x5, x6)
U14_AG(x1, x2, x3, x4, x5)  =  U14_AG(x5)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 3 SCCs with 17 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPC_IN_AAAG(.(T464, X806), T466, X807, .(T464, T465)) → APPC_IN_AAAG(X806, T466, X807, T465)

The TRS R consists of the following rules:

in_orderF_in_ag(void, []) → in_orderF_out_ag(void, [])
in_orderF_in_ag(void, T11) → U5_ag(T11, appD_in_aaag(X18, X31, X19, T11))
appD_in_aaag([], T32, T33, .(T32, T33)) → appD_out_aaag([], T32, T33, .(T32, T33))
appD_in_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53))) → appD_out_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53)))
appD_in_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73)))) → appD_out_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73))))
appD_in_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93))))) → appD_out_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93)))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113)))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133)))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153)))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173))))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173)))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_in_aaag(X395, X396, X397, T179))
appA_in_aaag([], T197, T198, .(T197, T198)) → appA_out_aaag([], T197, T198, .(T197, T198))
appA_in_aaag(.(T203, X446), X447, X448, .(T203, T204)) → U1_aaag(T203, X446, X447, X448, T204, appA_in_aaag(X446, X447, X448, T204))
U1_aaag(T203, X446, X447, X448, T204, appA_out_aaag(X446, X447, X448, T204)) → appA_out_aaag(.(T203, X446), X447, X448, .(T203, T204))
U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_out_aaag(X395, X396, X397, T179)) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179)))))))))
U5_ag(T11, appD_out_aaag(X18, X31, X19, T11)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(void, T11) → U6_ag(T11, appD_in_aaag(T17, T18, T19, T11))
U6_ag(T11, appD_out_aaag(T17, T18, T19, T11)) → U7_ag(T11, T19, in_orderB_in_g(T17))
in_orderB_in_g([]) → in_orderB_out_g([])
U7_ag(T11, T19, in_orderB_out_g(T17)) → in_orderF_out_ag(void, T11)
U7_ag(T11, T19, in_orderB_out_g(T17)) → U8_ag(T11, in_orderB_in_g(T19))
U8_ag(T11, in_orderB_out_g(T19)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(node(T234, T233, T235), T11) → U9_ag(T234, T233, T235, T11, appE_in_aaag(X18, T233, X19, T11))
appE_in_aaag([], T258, T259, .(T258, T259)) → appE_out_aaag([], T258, T259, .(T258, T259))
appE_in_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283))) → appE_out_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283)))
appE_in_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307)))) → appE_out_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307))))
appE_in_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331))))) → appE_out_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331)))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355)))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379)))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403)))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427))))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427)))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_in_aaag(X767, T437, X768, T436))
appC_in_aaag([], T455, T456, .(T455, T456)) → appC_out_aaag([], T455, T456, .(T455, T456))
appC_in_aaag(.(T464, X806), T466, X807, .(T464, T465)) → U2_aaag(T464, X806, T466, X807, T465, appC_in_aaag(X806, T466, X807, T465))
U2_aaag(T464, X806, T466, X807, T465, appC_out_aaag(X806, T466, X807, T465)) → appC_out_aaag(.(T464, X806), T466, X807, .(T464, T465))
U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_out_aaag(X767, T437, X768, T436)) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436)))))))))
U9_ag(T234, T233, T235, T11, appE_out_aaag(X18, T233, X19, T11)) → in_orderF_out_ag(node(T234, T233, T235), T11)
in_orderF_in_ag(node(T484, T482, T485), T11) → U10_ag(T484, T482, T485, T11, appE_in_aaag(T240, T482, T241, T11))
U10_ag(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → U11_ag(T484, T482, T485, T11, in_orderF_in_ag(T484, T240))
in_orderF_in_ag(node(T499, T500, T502), T11) → U12_ag(T499, T500, T502, T11, appE_in_aaag(T240, T500, T241, T11))
U12_ag(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → U13_ag(T499, T500, T502, T11, T241, in_orderF_in_ag(T499, T240))
U13_ag(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → U14_ag(T499, T500, T502, T11, in_orderF_in_ag(T502, T241))
U14_ag(T499, T500, T502, T11, in_orderF_out_ag(T502, T241)) → in_orderF_out_ag(node(T499, T500, T502), T11)
U11_ag(T484, T482, T485, T11, in_orderF_out_ag(T484, T240)) → in_orderF_out_ag(node(T484, T482, T485), T11)

The argument filtering Pi contains the following mapping:
in_orderF_in_ag(x1, x2)  =  in_orderF_in_ag(x2)
[]  =  []
in_orderF_out_ag(x1, x2)  =  in_orderF_out_ag
U5_ag(x1, x2)  =  U5_ag(x2)
appD_in_aaag(x1, x2, x3, x4)  =  appD_in_aaag(x4)
.(x1, x2)  =  .(x1, x2)
appD_out_aaag(x1, x2, x3, x4)  =  appD_out_aaag(x1, x2, x3)
U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appA_in_aaag(x1, x2, x3, x4)  =  appA_in_aaag(x4)
appA_out_aaag(x1, x2, x3, x4)  =  appA_out_aaag(x1, x2, x3)
U1_aaag(x1, x2, x3, x4, x5, x6)  =  U1_aaag(x1, x6)
U6_ag(x1, x2)  =  U6_ag(x2)
U7_ag(x1, x2, x3)  =  U7_ag(x2, x3)
in_orderB_in_g(x1)  =  in_orderB_in_g(x1)
in_orderB_out_g(x1)  =  in_orderB_out_g
U8_ag(x1, x2)  =  U8_ag(x2)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
appE_in_aaag(x1, x2, x3, x4)  =  appE_in_aaag(x4)
appE_out_aaag(x1, x2, x3, x4)  =  appE_out_aaag(x1, x2, x3)
U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appC_in_aaag(x1, x2, x3, x4)  =  appC_in_aaag(x4)
appC_out_aaag(x1, x2, x3, x4)  =  appC_out_aaag(x1, x2, x3)
U2_aaag(x1, x2, x3, x4, x5, x6)  =  U2_aaag(x1, x6)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x5, x6)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x5)
APPC_IN_AAAG(x1, x2, x3, x4)  =  APPC_IN_AAAG(x4)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPC_IN_AAAG(.(T464, X806), T466, X807, .(T464, T465)) → APPC_IN_AAAG(X806, T466, X807, T465)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
APPC_IN_AAAG(x1, x2, x3, x4)  =  APPC_IN_AAAG(x4)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APPC_IN_AAAG(.(T464, T465)) → APPC_IN_AAAG(T465)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • APPC_IN_AAAG(.(T464, T465)) → APPC_IN_AAAG(T465)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPA_IN_AAAG(.(T203, X446), X447, X448, .(T203, T204)) → APPA_IN_AAAG(X446, X447, X448, T204)

The TRS R consists of the following rules:

in_orderF_in_ag(void, []) → in_orderF_out_ag(void, [])
in_orderF_in_ag(void, T11) → U5_ag(T11, appD_in_aaag(X18, X31, X19, T11))
appD_in_aaag([], T32, T33, .(T32, T33)) → appD_out_aaag([], T32, T33, .(T32, T33))
appD_in_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53))) → appD_out_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53)))
appD_in_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73)))) → appD_out_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73))))
appD_in_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93))))) → appD_out_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93)))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113)))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133)))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153)))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173))))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173)))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_in_aaag(X395, X396, X397, T179))
appA_in_aaag([], T197, T198, .(T197, T198)) → appA_out_aaag([], T197, T198, .(T197, T198))
appA_in_aaag(.(T203, X446), X447, X448, .(T203, T204)) → U1_aaag(T203, X446, X447, X448, T204, appA_in_aaag(X446, X447, X448, T204))
U1_aaag(T203, X446, X447, X448, T204, appA_out_aaag(X446, X447, X448, T204)) → appA_out_aaag(.(T203, X446), X447, X448, .(T203, T204))
U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_out_aaag(X395, X396, X397, T179)) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179)))))))))
U5_ag(T11, appD_out_aaag(X18, X31, X19, T11)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(void, T11) → U6_ag(T11, appD_in_aaag(T17, T18, T19, T11))
U6_ag(T11, appD_out_aaag(T17, T18, T19, T11)) → U7_ag(T11, T19, in_orderB_in_g(T17))
in_orderB_in_g([]) → in_orderB_out_g([])
U7_ag(T11, T19, in_orderB_out_g(T17)) → in_orderF_out_ag(void, T11)
U7_ag(T11, T19, in_orderB_out_g(T17)) → U8_ag(T11, in_orderB_in_g(T19))
U8_ag(T11, in_orderB_out_g(T19)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(node(T234, T233, T235), T11) → U9_ag(T234, T233, T235, T11, appE_in_aaag(X18, T233, X19, T11))
appE_in_aaag([], T258, T259, .(T258, T259)) → appE_out_aaag([], T258, T259, .(T258, T259))
appE_in_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283))) → appE_out_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283)))
appE_in_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307)))) → appE_out_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307))))
appE_in_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331))))) → appE_out_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331)))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355)))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379)))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403)))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427))))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427)))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_in_aaag(X767, T437, X768, T436))
appC_in_aaag([], T455, T456, .(T455, T456)) → appC_out_aaag([], T455, T456, .(T455, T456))
appC_in_aaag(.(T464, X806), T466, X807, .(T464, T465)) → U2_aaag(T464, X806, T466, X807, T465, appC_in_aaag(X806, T466, X807, T465))
U2_aaag(T464, X806, T466, X807, T465, appC_out_aaag(X806, T466, X807, T465)) → appC_out_aaag(.(T464, X806), T466, X807, .(T464, T465))
U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_out_aaag(X767, T437, X768, T436)) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436)))))))))
U9_ag(T234, T233, T235, T11, appE_out_aaag(X18, T233, X19, T11)) → in_orderF_out_ag(node(T234, T233, T235), T11)
in_orderF_in_ag(node(T484, T482, T485), T11) → U10_ag(T484, T482, T485, T11, appE_in_aaag(T240, T482, T241, T11))
U10_ag(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → U11_ag(T484, T482, T485, T11, in_orderF_in_ag(T484, T240))
in_orderF_in_ag(node(T499, T500, T502), T11) → U12_ag(T499, T500, T502, T11, appE_in_aaag(T240, T500, T241, T11))
U12_ag(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → U13_ag(T499, T500, T502, T11, T241, in_orderF_in_ag(T499, T240))
U13_ag(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → U14_ag(T499, T500, T502, T11, in_orderF_in_ag(T502, T241))
U14_ag(T499, T500, T502, T11, in_orderF_out_ag(T502, T241)) → in_orderF_out_ag(node(T499, T500, T502), T11)
U11_ag(T484, T482, T485, T11, in_orderF_out_ag(T484, T240)) → in_orderF_out_ag(node(T484, T482, T485), T11)

The argument filtering Pi contains the following mapping:
in_orderF_in_ag(x1, x2)  =  in_orderF_in_ag(x2)
[]  =  []
in_orderF_out_ag(x1, x2)  =  in_orderF_out_ag
U5_ag(x1, x2)  =  U5_ag(x2)
appD_in_aaag(x1, x2, x3, x4)  =  appD_in_aaag(x4)
.(x1, x2)  =  .(x1, x2)
appD_out_aaag(x1, x2, x3, x4)  =  appD_out_aaag(x1, x2, x3)
U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appA_in_aaag(x1, x2, x3, x4)  =  appA_in_aaag(x4)
appA_out_aaag(x1, x2, x3, x4)  =  appA_out_aaag(x1, x2, x3)
U1_aaag(x1, x2, x3, x4, x5, x6)  =  U1_aaag(x1, x6)
U6_ag(x1, x2)  =  U6_ag(x2)
U7_ag(x1, x2, x3)  =  U7_ag(x2, x3)
in_orderB_in_g(x1)  =  in_orderB_in_g(x1)
in_orderB_out_g(x1)  =  in_orderB_out_g
U8_ag(x1, x2)  =  U8_ag(x2)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
appE_in_aaag(x1, x2, x3, x4)  =  appE_in_aaag(x4)
appE_out_aaag(x1, x2, x3, x4)  =  appE_out_aaag(x1, x2, x3)
U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appC_in_aaag(x1, x2, x3, x4)  =  appC_in_aaag(x4)
appC_out_aaag(x1, x2, x3, x4)  =  appC_out_aaag(x1, x2, x3)
U2_aaag(x1, x2, x3, x4, x5, x6)  =  U2_aaag(x1, x6)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x5, x6)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x5)
APPA_IN_AAAG(x1, x2, x3, x4)  =  APPA_IN_AAAG(x4)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPA_IN_AAAG(.(T203, X446), X447, X448, .(T203, T204)) → APPA_IN_AAAG(X446, X447, X448, T204)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
APPA_IN_AAAG(x1, x2, x3, x4)  =  APPA_IN_AAAG(x4)

We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APPA_IN_AAAG(.(T203, T204)) → APPA_IN_AAAG(T204)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • APPA_IN_AAAG(.(T203, T204)) → APPA_IN_AAAG(T204)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

IN_ORDERF_IN_AG(node(T484, T482, T485), T11) → U10_AG(T484, T482, T485, T11, appE_in_aaag(T240, T482, T241, T11))
U10_AG(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → IN_ORDERF_IN_AG(T484, T240)
IN_ORDERF_IN_AG(node(T499, T500, T502), T11) → U12_AG(T499, T500, T502, T11, appE_in_aaag(T240, T500, T241, T11))
U12_AG(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → U13_AG(T499, T500, T502, T11, T241, in_orderF_in_ag(T499, T240))
U13_AG(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → IN_ORDERF_IN_AG(T502, T241)
U12_AG(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → IN_ORDERF_IN_AG(T499, T240)

The TRS R consists of the following rules:

in_orderF_in_ag(void, []) → in_orderF_out_ag(void, [])
in_orderF_in_ag(void, T11) → U5_ag(T11, appD_in_aaag(X18, X31, X19, T11))
appD_in_aaag([], T32, T33, .(T32, T33)) → appD_out_aaag([], T32, T33, .(T32, T33))
appD_in_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53))) → appD_out_aaag(.(T38, []), T52, T53, .(T38, .(T52, T53)))
appD_in_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73)))) → appD_out_aaag(.(T38, .(T58, [])), T72, T73, .(T38, .(T58, .(T72, T73))))
appD_in_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93))))) → appD_out_aaag(.(T38, .(T58, .(T78, []))), T92, T93, .(T38, .(T58, .(T78, .(T92, T93)))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113)))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113, .(T38, .(T58, .(T78, .(T98, .(T112, T113))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133, .(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133)))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153)))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173))))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173)))))))))
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_in_aaag(X395, X396, X397, T179))
appA_in_aaag([], T197, T198, .(T197, T198)) → appA_out_aaag([], T197, T198, .(T197, T198))
appA_in_aaag(.(T203, X446), X447, X448, .(T203, T204)) → U1_aaag(T203, X446, X447, X448, T204, appA_in_aaag(X446, X447, X448, T204))
U1_aaag(T203, X446, X447, X448, T204, appA_out_aaag(X446, X447, X448, T204)) → appA_out_aaag(.(T203, X446), X447, X448, .(T203, T204))
U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, X395, X396, X397, T179, appA_out_aaag(X395, X396, X397, T179)) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397, .(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179)))))))))
U5_ag(T11, appD_out_aaag(X18, X31, X19, T11)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(void, T11) → U6_ag(T11, appD_in_aaag(T17, T18, T19, T11))
U6_ag(T11, appD_out_aaag(T17, T18, T19, T11)) → U7_ag(T11, T19, in_orderB_in_g(T17))
in_orderB_in_g([]) → in_orderB_out_g([])
U7_ag(T11, T19, in_orderB_out_g(T17)) → in_orderF_out_ag(void, T11)
U7_ag(T11, T19, in_orderB_out_g(T17)) → U8_ag(T11, in_orderB_in_g(T19))
U8_ag(T11, in_orderB_out_g(T19)) → in_orderF_out_ag(void, T11)
in_orderF_in_ag(node(T234, T233, T235), T11) → U9_ag(T234, T233, T235, T11, appE_in_aaag(X18, T233, X19, T11))
appE_in_aaag([], T258, T259, .(T258, T259)) → appE_out_aaag([], T258, T259, .(T258, T259))
appE_in_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283))) → appE_out_aaag(.(T267, []), T282, T283, .(T267, .(T282, T283)))
appE_in_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307)))) → appE_out_aaag(.(T267, .(T291, [])), T306, T307, .(T267, .(T291, .(T306, T307))))
appE_in_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331))))) → appE_out_aaag(.(T267, .(T291, .(T315, []))), T330, T331, .(T267, .(T291, .(T315, .(T330, T331)))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355)))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355, .(T267, .(T291, .(T315, .(T339, .(T354, T355))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379, .(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379)))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403)))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427))))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427)))))))))
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_in_aaag(X767, T437, X768, T436))
appC_in_aaag([], T455, T456, .(T455, T456)) → appC_out_aaag([], T455, T456, .(T455, T456))
appC_in_aaag(.(T464, X806), T466, X807, .(T464, T465)) → U2_aaag(T464, X806, T466, X807, T465, appC_in_aaag(X806, T466, X807, T465))
U2_aaag(T464, X806, T466, X807, T465, appC_out_aaag(X806, T466, X807, T465)) → appC_out_aaag(.(T464, X806), T466, X807, .(T464, T465))
U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, X767, T437, X768, T436, appC_out_aaag(X767, T437, X768, T436)) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768, .(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436)))))))))
U9_ag(T234, T233, T235, T11, appE_out_aaag(X18, T233, X19, T11)) → in_orderF_out_ag(node(T234, T233, T235), T11)
in_orderF_in_ag(node(T484, T482, T485), T11) → U10_ag(T484, T482, T485, T11, appE_in_aaag(T240, T482, T241, T11))
U10_ag(T484, T482, T485, T11, appE_out_aaag(T240, T482, T241, T11)) → U11_ag(T484, T482, T485, T11, in_orderF_in_ag(T484, T240))
in_orderF_in_ag(node(T499, T500, T502), T11) → U12_ag(T499, T500, T502, T11, appE_in_aaag(T240, T500, T241, T11))
U12_ag(T499, T500, T502, T11, appE_out_aaag(T240, T500, T241, T11)) → U13_ag(T499, T500, T502, T11, T241, in_orderF_in_ag(T499, T240))
U13_ag(T499, T500, T502, T11, T241, in_orderF_out_ag(T499, T240)) → U14_ag(T499, T500, T502, T11, in_orderF_in_ag(T502, T241))
U14_ag(T499, T500, T502, T11, in_orderF_out_ag(T502, T241)) → in_orderF_out_ag(node(T499, T500, T502), T11)
U11_ag(T484, T482, T485, T11, in_orderF_out_ag(T484, T240)) → in_orderF_out_ag(node(T484, T482, T485), T11)

The argument filtering Pi contains the following mapping:
in_orderF_in_ag(x1, x2)  =  in_orderF_in_ag(x2)
[]  =  []
in_orderF_out_ag(x1, x2)  =  in_orderF_out_ag
U5_ag(x1, x2)  =  U5_ag(x2)
appD_in_aaag(x1, x2, x3, x4)  =  appD_in_aaag(x4)
.(x1, x2)  =  .(x1, x2)
appD_out_aaag(x1, x2, x3, x4)  =  appD_out_aaag(x1, x2, x3)
U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U3_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appA_in_aaag(x1, x2, x3, x4)  =  appA_in_aaag(x4)
appA_out_aaag(x1, x2, x3, x4)  =  appA_out_aaag(x1, x2, x3)
U1_aaag(x1, x2, x3, x4, x5, x6)  =  U1_aaag(x1, x6)
U6_ag(x1, x2)  =  U6_ag(x2)
U7_ag(x1, x2, x3)  =  U7_ag(x2, x3)
in_orderB_in_g(x1)  =  in_orderB_in_g(x1)
in_orderB_out_g(x1)  =  in_orderB_out_g
U8_ag(x1, x2)  =  U8_ag(x2)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
appE_in_aaag(x1, x2, x3, x4)  =  appE_in_aaag(x4)
appE_out_aaag(x1, x2, x3, x4)  =  appE_out_aaag(x1, x2, x3)
U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x13)
appC_in_aaag(x1, x2, x3, x4)  =  appC_in_aaag(x4)
appC_out_aaag(x1, x2, x3, x4)  =  appC_out_aaag(x1, x2, x3)
U2_aaag(x1, x2, x3, x4, x5, x6)  =  U2_aaag(x1, x6)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x5, x6)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x5)
IN_ORDERF_IN_AG(x1, x2)  =  IN_ORDERF_IN_AG(x2)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x5)
U12_AG(x1, x2, x3, x4, x5)  =  U12_AG(x5)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x5, x6)

We have to consider all (P,R,Pi)-chains

(24) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(25) Obligation:

Q DP problem:
The TRS P consists of the following rules:

IN_ORDERF_IN_AG(T11) → U10_AG(appE_in_aaag(T11))
U10_AG(appE_out_aaag(T240, T482, T241)) → IN_ORDERF_IN_AG(T240)
IN_ORDERF_IN_AG(T11) → U12_AG(appE_in_aaag(T11))
U12_AG(appE_out_aaag(T240, T500, T241)) → U13_AG(T241, in_orderF_in_ag(T240))
U13_AG(T241, in_orderF_out_ag) → IN_ORDERF_IN_AG(T241)
U12_AG(appE_out_aaag(T240, T500, T241)) → IN_ORDERF_IN_AG(T240)

The TRS R consists of the following rules:

in_orderF_in_ag([]) → in_orderF_out_ag
in_orderF_in_ag(T11) → U5_ag(appD_in_aaag(T11))
appD_in_aaag(.(T32, T33)) → appD_out_aaag([], T32, T33)
appD_in_aaag(.(T38, .(T52, T53))) → appD_out_aaag(.(T38, []), T52, T53)
appD_in_aaag(.(T38, .(T58, .(T72, T73)))) → appD_out_aaag(.(T38, .(T58, [])), T72, T73)
appD_in_aaag(.(T38, .(T58, .(T78, .(T92, T93))))) → appD_out_aaag(.(T38, .(T58, .(T78, []))), T92, T93)
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T112, T113)))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113)
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133)
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153)))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153)
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173))))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173)
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, appA_in_aaag(T179))
appA_in_aaag(.(T197, T198)) → appA_out_aaag([], T197, T198)
appA_in_aaag(.(T203, T204)) → U1_aaag(T203, appA_in_aaag(T204))
U1_aaag(T203, appA_out_aaag(X446, X447, X448)) → appA_out_aaag(.(T203, X446), X447, X448)
U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, appA_out_aaag(X395, X396, X397)) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397)
U5_ag(appD_out_aaag(X18, X31, X19)) → in_orderF_out_ag
in_orderF_in_ag(T11) → U6_ag(appD_in_aaag(T11))
U6_ag(appD_out_aaag(T17, T18, T19)) → U7_ag(T19, in_orderB_in_g(T17))
in_orderB_in_g([]) → in_orderB_out_g
U7_ag(T19, in_orderB_out_g) → in_orderF_out_ag
U7_ag(T19, in_orderB_out_g) → U8_ag(in_orderB_in_g(T19))
U8_ag(in_orderB_out_g) → in_orderF_out_ag
in_orderF_in_ag(T11) → U9_ag(appE_in_aaag(T11))
appE_in_aaag(.(T258, T259)) → appE_out_aaag([], T258, T259)
appE_in_aaag(.(T267, .(T282, T283))) → appE_out_aaag(.(T267, []), T282, T283)
appE_in_aaag(.(T267, .(T291, .(T306, T307)))) → appE_out_aaag(.(T267, .(T291, [])), T306, T307)
appE_in_aaag(.(T267, .(T291, .(T315, .(T330, T331))))) → appE_out_aaag(.(T267, .(T291, .(T315, []))), T330, T331)
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T354, T355)))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355)
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379)
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403)))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403)
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427))))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427)
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, appC_in_aaag(T436))
appC_in_aaag(.(T455, T456)) → appC_out_aaag([], T455, T456)
appC_in_aaag(.(T464, T465)) → U2_aaag(T464, appC_in_aaag(T465))
U2_aaag(T464, appC_out_aaag(X806, T466, X807)) → appC_out_aaag(.(T464, X806), T466, X807)
U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, appC_out_aaag(X767, T437, X768)) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768)
U9_ag(appE_out_aaag(X18, T233, X19)) → in_orderF_out_ag
in_orderF_in_ag(T11) → U10_ag(appE_in_aaag(T11))
U10_ag(appE_out_aaag(T240, T482, T241)) → U11_ag(in_orderF_in_ag(T240))
in_orderF_in_ag(T11) → U12_ag(appE_in_aaag(T11))
U12_ag(appE_out_aaag(T240, T500, T241)) → U13_ag(T241, in_orderF_in_ag(T240))
U13_ag(T241, in_orderF_out_ag) → U14_ag(in_orderF_in_ag(T241))
U14_ag(in_orderF_out_ag) → in_orderF_out_ag
U11_ag(in_orderF_out_ag) → in_orderF_out_ag

The set Q consists of the following terms:

in_orderF_in_ag(x0)
appD_in_aaag(x0)
appA_in_aaag(x0)
U1_aaag(x0, x1)
U3_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8)
U5_ag(x0)
U6_ag(x0)
in_orderB_in_g(x0)
U7_ag(x0, x1)
U8_ag(x0)
appE_in_aaag(x0)
appC_in_aaag(x0)
U2_aaag(x0, x1)
U4_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8)
U9_ag(x0)
U10_ag(x0)
U12_ag(x0)
U13_ag(x0, x1)
U14_ag(x0)
U11_ag(x0)

We have to consider all (P,Q,R)-chains.

(26) MRRProof (EQUIVALENT transformation)

By using the rule removal processor [LPAR04] with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented.
Strictly oriented dependency pairs:

IN_ORDERF_IN_AG(T11) → U10_AG(appE_in_aaag(T11))
U10_AG(appE_out_aaag(T240, T482, T241)) → IN_ORDERF_IN_AG(T240)
IN_ORDERF_IN_AG(T11) → U12_AG(appE_in_aaag(T11))
U12_AG(appE_out_aaag(T240, T500, T241)) → U13_AG(T241, in_orderF_in_ag(T240))
U13_AG(T241, in_orderF_out_ag) → IN_ORDERF_IN_AG(T241)
U12_AG(appE_out_aaag(T240, T500, T241)) → IN_ORDERF_IN_AG(T240)

Strictly oriented rules of the TRS R:

in_orderF_in_ag([]) → in_orderF_out_ag
in_orderF_in_ag(T11) → U5_ag(appD_in_aaag(T11))
appD_in_aaag(.(T32, T33)) → appD_out_aaag([], T32, T33)
appD_in_aaag(.(T38, .(T52, T53))) → appD_out_aaag(.(T38, []), T52, T53)
appD_in_aaag(.(T38, .(T58, .(T72, T73)))) → appD_out_aaag(.(T38, .(T58, [])), T72, T73)
appD_in_aaag(.(T38, .(T58, .(T78, .(T92, T93))))) → appD_out_aaag(.(T38, .(T58, .(T78, []))), T92, T93)
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T112, T113)))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, [])))), T112, T113)
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T132, T133))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, []))))), T132, T133)
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T152, T153)))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, [])))))), T152, T153)
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T172, T173))))))))) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, []))))))), T172, T173)
appD_in_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, T179))))))))) → U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, appA_in_aaag(T179))
appA_in_aaag(.(T197, T198)) → appA_out_aaag([], T197, T198)
appA_in_aaag(.(T203, T204)) → U1_aaag(T203, appA_in_aaag(T204))
U1_aaag(T203, appA_out_aaag(X446, X447, X448)) → appA_out_aaag(.(T203, X446), X447, X448)
U3_aaag(T38, T58, T78, T98, T118, T138, T158, T178, appA_out_aaag(X395, X396, X397)) → appD_out_aaag(.(T38, .(T58, .(T78, .(T98, .(T118, .(T138, .(T158, .(T178, X395)))))))), X396, X397)
U5_ag(appD_out_aaag(X18, X31, X19)) → in_orderF_out_ag
in_orderF_in_ag(T11) → U6_ag(appD_in_aaag(T11))
U6_ag(appD_out_aaag(T17, T18, T19)) → U7_ag(T19, in_orderB_in_g(T17))
in_orderB_in_g([]) → in_orderB_out_g
U7_ag(T19, in_orderB_out_g) → in_orderF_out_ag
U7_ag(T19, in_orderB_out_g) → U8_ag(in_orderB_in_g(T19))
U8_ag(in_orderB_out_g) → in_orderF_out_ag
in_orderF_in_ag(T11) → U9_ag(appE_in_aaag(T11))
appE_in_aaag(.(T258, T259)) → appE_out_aaag([], T258, T259)
appE_in_aaag(.(T267, .(T282, T283))) → appE_out_aaag(.(T267, []), T282, T283)
appE_in_aaag(.(T267, .(T291, .(T306, T307)))) → appE_out_aaag(.(T267, .(T291, [])), T306, T307)
appE_in_aaag(.(T267, .(T291, .(T315, .(T330, T331))))) → appE_out_aaag(.(T267, .(T291, .(T315, []))), T330, T331)
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T354, T355)))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, [])))), T354, T355)
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T378, T379))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, []))))), T378, T379)
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T402, T403)))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, [])))))), T402, T403)
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T426, T427))))))))) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, []))))))), T426, T427)
appE_in_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, T436))))))))) → U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, appC_in_aaag(T436))
appC_in_aaag(.(T455, T456)) → appC_out_aaag([], T455, T456)
appC_in_aaag(.(T464, T465)) → U2_aaag(T464, appC_in_aaag(T465))
U2_aaag(T464, appC_out_aaag(X806, T466, X807)) → appC_out_aaag(.(T464, X806), T466, X807)
U4_aaag(T267, T291, T315, T339, T363, T387, T411, T435, appC_out_aaag(X767, T437, X768)) → appE_out_aaag(.(T267, .(T291, .(T315, .(T339, .(T363, .(T387, .(T411, .(T435, X767)))))))), T437, X768)
U9_ag(appE_out_aaag(X18, T233, X19)) → in_orderF_out_ag
in_orderF_in_ag(T11) → U10_ag(appE_in_aaag(T11))
U10_ag(appE_out_aaag(T240, T482, T241)) → U11_ag(in_orderF_in_ag(T240))
in_orderF_in_ag(T11) → U12_ag(appE_in_aaag(T11))
U12_ag(appE_out_aaag(T240, T500, T241)) → U13_ag(T241, in_orderF_in_ag(T240))
U13_ag(T241, in_orderF_out_ag) → U14_ag(in_orderF_in_ag(T241))
U14_ag(in_orderF_out_ag) → in_orderF_out_ag
U11_ag(in_orderF_out_ag) → in_orderF_out_ag

Used ordering: Knuth-Bendix order [KBO] with precedence:
appAinaaag1 > U7ag2 > U13AG2 > U12AG1 > U10AG1 > INORDERFINAG1 > U14ag1 > appCinaaag1 > U2aaag2 > appDoutaaag3 > appDinaaag1 > inorderFinag1 > U12ag1 > inorderBing1 > U3aaag9 > U4aaag9 > .2 > U13ag2 > U10ag1 > U11ag1 > appCoutaaag3 > appEoutaaag3 > appEinaaag1 > U8ag1 > U1aaag2 > appAoutaaag3 > U5ag1 > [] > inorderFoutag > inorderBoutg > U9ag1 > U6ag1

and weight map:

[]=3
in_orderF_out_ag=9
in_orderB_out_g=3
in_orderF_in_ag_1=6
U5_ag_1=3
appD_in_aaag_1=1
appA_in_aaag_1=1
U6_ag_1=4
in_orderB_in_g_1=1
U8_ag_1=7
U9_ag_1=4
appE_in_aaag_1=1
appC_in_aaag_1=1
U10_ag_1=5
U11_ag_1=4
U12_ag_1=5
U14_ag_1=5
IN_ORDERF_IN_AG_1=8
U10_AG_1=4
U12_AG_1=3
._2=8
appD_out_aaag_3=3
U3_aaag_9=63
appA_out_aaag_3=5
U1_aaag_2=8
U7_ag_2=6
appE_out_aaag_3=3
U4_aaag_9=61
appC_out_aaag_3=6
U2_aaag_2=8
U13_ag_2=3
U13_AG_2=0

The variable weight is 1

(27) Obligation:

Q DP problem:
P is empty.
R is empty.
The set Q consists of the following terms:

in_orderF_in_ag(x0)
appD_in_aaag(x0)
appA_in_aaag(x0)
U1_aaag(x0, x1)
U3_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8)
U5_ag(x0)
U6_ag(x0)
in_orderB_in_g(x0)
U7_ag(x0, x1)
U8_ag(x0)
appE_in_aaag(x0)
appC_in_aaag(x0)
U2_aaag(x0, x1)
U4_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8)
U9_ag(x0)
U10_ag(x0)
U12_ag(x0)
U13_ag(x0, x1)
U14_ag(x0)
U11_ag(x0)

We have to consider all (P,Q,R)-chains.

(28) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(29) YES